package org.springblade.modules.admin.vo.rescue.map;

import cn.hutool.core.util.ObjectUtil;
import lombok.Data;
import org.springblade.common.cache.DictCache;
import org.springblade.modules.admin.entity.BuildingExt;

/**
 * @Date 9:39 2023/9/1
 * @Description {
 *   救援地图项目详情
 * }
 * @Author lsay
 **/
@Data
public class MapRescueBuildingDetailVO {

	private Long buildingId;

	private String buildingName;

	private String buildingType;

	private String buildingTypeDesc;

	private Integer elevatorCount;
	private Integer rescueCount;
	private Integer maintainCount;
	private Integer malfunctionCount;

	private String deptNames;

	private String userNames;
	private String latitude;
	private String longitude;

	private String contactsName;
	/**
	 * 0-男 1-女
	 */
	private Integer gender;

	private BuildingExt buildingExt;

	public void setBuildingType(String buildingType) {
		if(ObjectUtil.isNotEmpty(buildingType)){
			this.buildingTypeDesc = DictCache.getValue("building_type",buildingType);
		}
		this.buildingType = buildingType;
	}

}
